home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
language
/
elan1v5.arc
/
PLANE.ARC
/
POINTS.E
< prev
next >
Wrap
Text File
|
1989-03-10
|
573b
|
30 lines
PACKET point:
LET POINT = STRUCT (REAL x, y);
POINT PROC point (REAL CONST a, b):
[a, b]
ENDPROC point;
PROC picture point (POINT CONST v):
move (x0 + int (aspect * radius * XC v), y0 + int (radius * YC v));
plot pixel
ENDPROC picture point;
REAL PROC abs (POINT CONST a):
sqrt (XC a * XC a + YC a * YC a)
ENDPROC abs;
REAL OP YC (POINT CONST a):
a.y
ENDOP YC;
REAL OP XC (POINT CONST a):
a.x
ENDOP XC;
POINT OP * (POINT CONST a, b):
point (XC a * XC b - YC a * YC b, XC a * YC b + YC a * XC b)
ENDOP *;
ENDPACKET point;əə